package gov.child.entities.vo;

/**
 * @author fzh
 * @since 2017/9/12
 */
public class Auth {
    public static final int BY_USERNAME = 0;
    public static final int BY_PHONE = 1;
    public static final int BY_ID_NUM = 2;
    private String key;
    private String password;
    // option 指明登陆类型，0 username; 1 phone; 2 ID Number
    private int option;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public int getOption() {
        return option;
    }

    public void setOption(int option) {
        this.option = option;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "key='" + key + '\'' +
                ", option=" + option +
                '}';
    }
}
